<?
require("config.php");
require($rela_path . "bin/country.php");
$location_status .= "| Add";
$show_backnav = "subscription_menu";
$menuname = NULL;
$menutarget = NULL;

if (NULL!=$action){

   $field = array(
	"code", 
	"email", 
	"name", 
	"date", 
	"last_name",
	"tel",
	"fax",
	"address",
	"profession",
	"education",
	"country",
	"lang_english","lang_dannish","lang_chinese","company",
	);


   $content = array(
	$Code,
	$Email,
	$Name,
	$Date,
		$last_name,
	$tel,
	$fax,
	$address,
	$profession,
	$education,
	$Country,
	$lang_english,$lang_dannish, $lang_chinese,$company,

	);

   myInsert($table,$field,$content);


   header("location:" . $rela_path . "share/msg.php?v=49");

   exit();

}else{

  if (checkCode($table,$Code)){

	header("location:" . $rela_path . "share/msg.php?v=9002");

	exit();
  
  }

}

require($rela_path . "inc/header.php");

?>



<form action="" method="post" enctype="multipart/form-data" name="form1">
<input name="action" type="hidden" value="add">
<input name="Code" type="hidden" value="<?print($Code)?>">




<table width="95%" border="0" align="center">
  <tr>
    <td valign="top">&nbsp;</td>
  </tr>
  <tr> 
    <td valign="top"> <p> 
      <table border="0" cellspacing="5" cellpadding="1">
        <tr> 
          <td class="tdheader">Code :</td>
          <td><?print($Code)?></td>
        </tr>
        <tr>
          <td class="tdheader">Subscription Date :</td>
          <td><input type="text" class="text" name="Date" size="40" value="<?print(date("Y-m-d"))?>" /></td>
        </tr>
        <tr> 
          <td class="tdheader">First Name :</td>
          <td><input type="text" class="text" name="Name" size="40"></td>
        </tr>
        <tr>
          <td class="tdheader">Last Name :</td>
          <td><input name="last_name" type="text" class="text" id="last_name" size="40" /></td>
        </tr>
        <tr> 
          <td class="tdheader">Subscriber's Email :</td>
          <td><input type="text" class="text" name="Email" size="40"></td>
        </tr>
        <tr>
          <td class="tdheader">Mobile :</td>
          <td><input name="tel" type="text" class="text" id="tel" size="40" /></td>
        </tr>
        <tr>
          <td class="tdheader">Company :</td>
          <td><input name="company" type="text" class="text" id="company" size="40" /></td>
        </tr>
        <tr>
          <td class="tdheader">Profession :</td>
          <td><input name="profession" type="text" class="text" id="profession" size="40" /></td>
        </tr>
        <tr>
          <td class="tdheader">Company Phone  :</td>
          <td><input name="fax" type="text" class="text" id="fax" size="40" /></td>
        </tr>
        <tr>
          <td class="tdheader">Address :</td>
          <td><input name="address" type="text" class="text" id="address" size="40" /></td>
        </tr>
        <tr>
          <td class="tdheader">Education :</td>
          <td><input name="education" type="text" class="text" id="education" size="40" /></td>
        </tr>
        <tr>
          <td class="tdheader">Country :</td>
          <td><?print(FFPCountry("HONG KONG"))?></td>
        </tr>
        
        <tr>
          <td class="tdheader">Language :</td>
          <td>
            <input name="lang_english" type="checkbox" id="lang_english" value="checked" <?print($active2)?> /> 
            English
<br />
<input name="lang_dannish" type="checkbox" id="lang_dannish" value="checked" <?print($active3)?> /> 
Danish 
<br />
<input name="lang_chinese" type="checkbox" id="lang_chinese" value="checked" <?print($active4)?> /> 
Chinese</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td><input type="image" src="../../images/bt_cancel.gif" onClick="Redirect('subscription_menu.php',1);return false;"> <input type="image" src="../../images/bt_save.gif">          </td>
        </tr>
      </table>
      <p> <br>
      <p>
      <p>
      <p>
      <p>
      <p>
      <p> 
      <p>
    </td>
  </tr>
</table>
<br>
<br>
<br>
<?
require($rela_path . "inc/footer.php");
?>
